import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/klass/` + url, ...arg)

/**
 * 班级Api接口管理器
 *
 * @author ahui
 * @date  2023/05/13 21:09
 **/
export default {
	// 获取班级分页
	eduKlassPage(data) {
		return request('page', data, 'get')
	},
	// 获取班级列表
	eduKlassList(data) {
		return request('list', data, 'get')
	},
	// 提交班级表单 edit为true时为编辑，默认为新增
	eduKlassSubmitForm(data, edit = false) {
		return request(edit ? 'add' : 'edit', data)
	},
	// 删除班级
	eduKlassDelete(data) {
		return request('delete', data)
	},
	// 获取班级详情
	eduKlassDetail(data) {
		return request('detail', data, 'get')
	},
    eduMajorList(data) {
		return request('majorList', data, 'get')
    }
}
